package com.mc.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mc.dao.SubMenuMapper;
import com.mc.model.SubMenu;
import com.mc.service.SubMenuService;
@Service
public class SubServiceImpl implements SubMenuService {
    
	@Autowired private SubMenuMapper subMenuMapper;
	
	public int deleteByPrimaryKey(Integer id) {
		return subMenuMapper.deleteByPrimaryKey(id);
	}

	
	public int insert(SubMenu record) {
		return subMenuMapper.insert(record);
	}

	
	public int insertSelective(SubMenu record) {
		return subMenuMapper.insertSelective(record);
	}

	
	public SubMenu selectByPrimaryKey(Integer id) {
		return subMenuMapper.selectByPrimaryKey(id);
	}

	
	public int updateByPrimaryKeySelective(SubMenu record) {
		return subMenuMapper.updateByPrimaryKeySelective(record);
	}

	
	public int updateByPrimaryKey(SubMenu record) {
		// TODO Auto-generated method stub
		return subMenuMapper.updateByPrimaryKey(record);
	}

	
	public List<SubMenu> selectSubMenuByMid(int pmid) {
		// TODO Auto-generated method stub
		return subMenuMapper.selectSubMenuByMid(pmid);
	}



}
